<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta charset="utf-8">
	<title>主界面</title>
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<script src="js/bootstrap.min.js"></script>
  </head>
  <style>
   .ten{
  		padding-top:15px;
  }
  #six{
  		padding-top:50px;
  }
  #four{
  		margin-top:-110px;
  }
  body{
  		background-color:#eeefff;
  }
  </style>
  
  <body>
    <h1 align="center">欢迎使用个人信息管理平台</h1>
    <div class="row">
   		<div class="col-sm-3 col-md-2">
   		<ul class="nav nav-pills nav-stacked" style="max-width: 260px;"><br><br>
			<li><a href="findAllPersonMessageServlet?userName=${userName}">个人信息管理 <span class="sr-only">(current)</span></a></li>
            <li><a href="findAllFriendsServlet?userName=${userName}">通讯录管理</a></li>
            <li><a href="findAllDateTimeServlet?userName=${userName}">日程安排管理</a></li>
            <li><a href="findAllFileServlet?userName=${userName}">个人文件管理</a></li>
            <li><a href="login/index.jsp">推出主界面</a></li>
            <li><a href="">欢迎${userName}使用本系统！</a></li>
   		</ul>
   		</div>
   		
   		<div class="col-sm-3 col-sm-offset-3 col-md-8 col-md-offset-2 main">
        	<div class="ten">
          		<h1 class="page-header">通讯录管理</h1>
          	</div>
          	<div class="row placeholders">
            <div class="col-xs-6 col-sm-3 placeholder">
              <a href="friendManager/InsertFriend.jsp" class="one">增加联系人</a>
            </div>
            <div class="col-xs-6 col-sm-3 placeholder">
              <a href="findAllFriendsServlet?userName=${userName}" class="two">查看联系人</a>
            </div>
            <div class="col-xs-6 col-sm-3 placeholder">
              <input type="text" value=" ">
    	<input type="button" value="查找">
            </div>
            <div class="col-xs-6 col-sm-3 placeholder">
              <a class="three">修删联系人:</a>
            </div>
          </div>
        </div>    
    </div>
    

    <div align="center" id="four">
    <form action="updateFriends" method="post">
    	<table border="3" width="400">
    		<tr>
    			<td>好友姓名</td>
    			<td><input type="text" value="${friends.name}" name="name"></td>
    		</tr>
    		<tr>
    			<td>好友电话</td>
    			<td><input type="text" value="${friends.phone}" name="phone"></td>
    		</tr>
    		<tr>
    			<td>邮箱地址</td>
    			<td><input type="text" value="${friends.email}" name="email"></td>
    		</tr>
    		<tr>
    			<td>工作单位</td>
    			<td><input type="text" value="${friends.workplace}" name="workplace"></td>
    		</tr>
    		<tr>
    			<td>家庭住址</td>
    			<td><input type="text" value="${friends.place}" name="place"></td>
    		</tr>
    		<tr>
    			<td>QQ</td>
    			<td><input type="text" value="${friends.QQ}" name="QQ"></td>
    		</tr>
    		<tr align="center">
    			<td colspan="2">
    				<input type="submit" value="修改">
    				<input type="reset" value="清除">
    			</td>
    		</tr>
    	</table>
    	</form>
    </div>
  </body>
</html>
